//
//  BrandFrameModel.m
//  ChunLaiZhuangClient
//
//  Created by zzs on 16/3/15.
//  Copyright © 2016年 CLZ. All rights reserved.
//

#import "BrandFrameModel.h"


@implementation BrandDataModel


@end


@implementation BrandFrameModel
-(void)setModel:(BrandDataModel *)model{
    _model=model;
    float width=(SCREEN_WIDTH-18-2*3)/4;
    int lineNum=0;
    if (model.dataArray.count%4==0) {
        lineNum=model.dataArray.count/4;
    }else{
        lineNum=model.dataArray.count/4+1;
    }
    self.cellHeight=(width+2)*lineNum;
    
}
@end
